package login;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Scanner;
import javax.swing.JOptionPane;

public class Login {

    public   void main(String[] args) {
        try {

            Connection conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/mysql?zeroDateTimeBehavior=convertToNull"); // connect to database with this

            Statement st = (Statement) conn.createStatement(); //communicate to database woth this

            String username = "leito";
            String password = "migeranis";
            

             String ins = "Insert into signup values (" + username + " , " + password + "";

            st.executeUpdate(ins); //send to database

        } catch (SQLException e) {
            JOptionPane.showMessageDialog(null,"");
        }

    }

}
